﻿using Microsoft.AspNetCore.Mvc;

namespace Medlcalcare.MVC.Controllers
{
    public class DepartmentController : Controller
    {

        /// <summary>
        /// 科室
        /// </summary>
        /// <returns></returns>
        /// 
        public IConfiguration Configuration { get; }

        public DepartmentController(IConfiguration configuration)
        {

            Configuration = configuration;
        }

        /// <summary>
        /// 科室新增
        /// </summary>
        /// <returns></returns>
        public IActionResult AddDepartment()
        {
            ViewBag.BaseUrl = Configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }

        /// <summary>
        /// 科室显示
        /// </summary>
        /// <returns></returns>
        public IActionResult GetDepartment()
        {
            ViewBag.BaseUrl = Configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
    }
}
